{// 引入标签库 }
<tagLib name="html" />
<include file="Public:header" />
<php>
function createTime($time){
    return date('Y-m-d H:i:s',$time);
}
function image($img){
    return "<img src='".$img."' style='height:35px;'/>";
}
</php>

<script>
function edit(id,pid) {
    location.href = ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=edit&type="+{:intval($_REQUEST['type'])}+"&id="+id+"&pid={:$id}";
}
</script>
<div class="main">
<div class="main_title">
    <div class="list-line-ico"></div>
    <a href="{:u('Course/index',array('type'=>$_REQUEST['type']))}" class="back_list">
        <if condition="$_REQUEST['type'] eq 1">齐家学堂<else/>余世维说</if>课程列表
    </a>&gt;&gt;
    <a href="{:u('Course/edit',array('id'=>$id,'type'=>$_REQUEST['type']))}" class="back_list">
        课程"{:$course['title']}"
    </a>&gt;&gt;
    分集列表</div>
    <div class="search_row">
        <form name="search" action="__APP__" method="get">
            课程编号：<input type="text" class="textbox" name="sid" value="{:trim($_REQUEST['sid'])}" />
            课程名称：<input type="text" class="textbox" name="title" value="{:trim($_REQUEST['title'])}" />

            <input type="hidden" value="Course" name="m" />
            <input type="hidden" value="view" name="a" />
            <input type="hidden" value="{:intval($_REQUEST['id'])}" name="id" />
            <input type="submit" class="button" value="{%SEARCH}" />
        </form>
    </div>
    <html:list
            id="dataTable"
            style="dataTable"
            name="course"
            action="true"
            datasource="list"
            show="id:{%ID}
            ,title:分集名称
            ,create_time|createTime:创建时间
            ,img|image:封面图片
            ,season:集数
            ,is_vip:收费等级"
            actionlist="id|edit|编辑, del:{%DEL}" />

            <table class="dataTable">
                <tbody>
                    <td colspan="11">
                        <input type="button" class="button button-add" value="{%ADD}" onclick="edit(0);" />
                    </td>
                </tbody>
            </table>
<div class="blank5"></div>
<div class="page">{$page}</div>
</div>
<include file="Public:footer" />